﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Documents.web.Models.PatientDocumentsViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="cphTopContent" runat="server">
 <div class="roundedbox clearfix">
  <span id="boxlogo" class="floatleft"></span>
 <h1 class="pagetitle logoonleft floatleft">Welsh Clinical Portal : <span>Clinical Documents</span></h1>
 
 </div>


</asp:Content>

<asp:Content ContentPlaceHolderID="cphNavigation" runat="server">
            <ul class="tabs clearfix">
                <li><%= Html.RouteLink("Workspace", new { controller = "Home", action = "Dashboard" })%></li>
                <li>Alerts and Warnings</li>
                <li class="selected"><%= Html.RouteLink("Clinical Documents", new { controller = "Home", action = "DocumentsPage" })%> </li>
                <li>Medicines Transcribing</li>
                <li>Radiology</li>
                <li>Pathology</li>
                <li>Urology</li>
            </ul>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cphActionBar" runat="server">
<div id="actionbardetails" class="clearfix">
<ul>
<li class="actionbutton newbutton documenttypecontainer hidden" documenttype="" id="createdocumentbutton">New</li>
<li class="actionbutton documentbutton documenthistoryactionbutton disabled hidden" id="showdocumentbutton">Back to document</li>
<li class="actionbutton historybutton disabled" id="showhistorybutton">History</li>
<li class="actionbutton revokebutton documentactionbutton disabled" id="revokedocumentbutton">Revoke</li>
<li class="actionbutton metadatabutton documentactionbutton disabled" id="showmetadatabutton">Meta Data</li>
<li class="actionbutton maximizebutton disabled hidden" id="maximizedocumentbutton">Maximise</li>
<li class="actionbutton restorebutton disabled hidden" id="restoredocumentbutton">Restore</li>
</ul>
</div>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="cphLeftColumn" runat="server">
 <div class="roundedbox clearfix">
 <% Html.RenderPartial("PatientLabel", Model.Demographics); %>

 </div> 
 <div class="roundedbox clearfix nopadding">
 <ul id="documentselectors">
    <li class="dottedbottomborder"><a id="careeventtoggle">Care events</a>
        <div style="display:none;" class="notvisible" id="careeventlist" >
            <% Html.RenderPartial("CareEvents", Model.CareEvents); %>
        </div>
    </li>
    <li><a id="alldocumentstoggle">All documents</a>
        <div style="display:none;" class="notvisible" id="alldocumentlist">
            <% Html.RenderPartial("CategoryList", Model.CategoryList); %>
        </div>
    </li>
 </ul>
 </div>
 
 <script type="text/javascript">

     $("#careeventtoggle").click(function() {
         if ($("#careeventlist").hasClass("notvisible")) {
             $("#careeventlist").slideDown("fast");
             $("#careeventlist").removeClass("notvisible");
             $("#careeventlist").addClass("visible");
         }
         else {
             $("#careeventlist").slideUp("fast");
             $("#careeventlist").addClass("notvisible");
             $("#careeventlist").removeClass("visible");
         };
     });


     $("#alldocumentstoggle").click(function() {
     if ($("#alldocumentlist").hasClass("notvisible")) {
             $("#alldocumentlist").slideDown("fast");
             $("#alldocumentlist").removeClass("notvisible");
             $("#alldocumentlist").addClass("visible");
         }
         else {
             $("#alldocumentlist").slideUp("fast");
             $("#alldocumentlist").addClass("notvisible");
             $("#alldocumentlist").removeClass("visible");
         };
     });
 </script>
 
</asp:Content>


<asp:Content ID="Content5" ContentPlaceHolderID="cphCenterList" runat="server">
<% 
Html.RenderPartial("DocumentList", Model.DocumentList); 
%>
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="cphContentViewer" runat="server">
<div id="documentcontainer"></div>
<div id="historycontainer"></div>
</asp:Content>
